package com.ios.dto;

import com.ios.entity.PsychologicalTestResult;
import com.ios.enums.PsychologicalTestEnum;

/**
*@Author:WenTao
*@Description:测试结果对应中间结果类
*@Date:15:51 2018/7/20
*/
public class PsychologyResultExecution {
    /*结果状态*/
    private int state;
    /*状态标识*/
    private String stateInfo;
    /*测试结果描述*/
    private String resultInfo;
    /*测试分数*/
    private float resultScore;
    /*测试结果类*/
    private PsychologicalTestResult psychologicalTestResult;

    /*操作失败时的构造器*/
    public PsychologyResultExecution(PsychologicalTestEnum stateEnum){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
    }

    /*操作成功时的构造器*/
    public PsychologyResultExecution(PsychologicalTestEnum stateEnum, PsychologicalTestResult psychologicalTestResult,float resultScore,String resultInfo){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.resultScore = resultScore;
        this.resultInfo = resultInfo;
        this.psychologicalTestResult=psychologicalTestResult;
    }

    public String getResultInfo() {
        return resultInfo;
    }

    public void setResultInfo(String resultInfo) {
        this.resultInfo = resultInfo;
    }

    public float getResultScore() {
        return resultScore;
    }

    public void setResultScore(float resultScore) {
        this.resultScore = resultScore;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public PsychologicalTestResult getPsychologicalTestResult() {
        return psychologicalTestResult;
    }

    public void setPsychologicalTestResult(PsychologicalTestResult psychologicalTestResult) {
        this.psychologicalTestResult = psychologicalTestResult;
    }
}
